home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / lcppb.zip / LCPPLIB.ZIP / WINTOOL.H < prev   
C/C++ Source or Header  |  1991-07-08  |  2KB  |  72 lines

  1. // wintool.h -- Header for wintool.cpp
  2.  
  3. #include "key.h"
  4. #include "command.h"
  5. #include "window.h"
  6. #include "selector.h"
  7.  
  8. /* -- Pop-up menu position, size, and other attributes */
  9.  
  10. #define MENU_ROW        4
  11. #define MENU_COL        5
  12. #define MENU_WIDTH      24
  13. #define MENU_HEIGHT     9
  14. #define MENU_TA         0x07
  15. #define MENU_BA         0x1f
  16. #define MENU_HA         0x70
  17. #define MENU_TYPE       1           // Single-line border
  18. #define MENU_TITLE      " Menu "
  19. #define MENU_POPUP      0           // Not pop-up, stationary
  20.  
  21. /* -- Sample window position, size, and other attributes */
  22.  
  23. #define SAMP_ROW        4
  24. #define SAMP_COL        44
  25. #define SAMP_WIDTH      31
  26. #define SAMP_HEIGHT     18
  27. #define SAMP_TYPE       3
  28. #define SAMP_TITLE      " Sample Window "
  29.  
  30. /* -- Unique values identifying menu commands that call
  31. the same command-object virtual function. That function uses
  32. these values to determine which command called it. */
  33.  
  34. #define CMD_TBG   0
  35. #define CMD_TFG   1
  36. #define CMD_BBG   2
  37. #define CMD_BFG   3
  38. #define CMD_HBG   4
  39. #define CMD_HFG   5
  40.  
  41. /* -- Command classes for WinTool */
  42.  
  43. class helpCommand : public command {
  44.   public:
  45.     helpCommand() : command(" Help") { }
  46.     virtual void performCommand(void);
  47. };
  48.  
  49. class attrCommand : public command {
  50.   public:
  51.     attrCommand(const char *s, int cn) : command(s, cn) { }
  52.     virtual void performCommand(void);
  53. };
  54.  
  55. /* -- Function prototypes for main program */
  56.  
  57. void createMainWindow(void);
  58. void createSampWindow(void);
  59. void performCommands(void);
  60. void showColors(void);
  61. void showSample(void);
  62. char *dec(int);
  63. char *hex(unsigned int);
  64.  
  65.  
  66. // Copyright (c) 1990 by Tom Swan. All rights reserved
  67. // Revision 1.00    Date: 09/28/1990   Time: 03:21 pm
  68.  
  69. // Revision 1.01    Date: 07/08/1991   Time: 05:41 pm
  70. // Converted for Borland C++ 2.0
  71.  
  72.